﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="chargelist.aspx.cs" Inherits="UI.manage.page.charge.chargelist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="/system/js/jquery.min.js"></script>
    <script src="/system/layui/layui.js"></script>
    <script src="/system/js/common.js"></script>
    <script src="/system/js/md5.js"></script>
    <link rel="stylesheet" href="/system/layui/css/layui.css">
    <link rel="stylesheet" href="/system/css/iframe.css">
</head>
<body>
    <form id="form1" runat="server">
    <div class="layer-toolbar">
        <div class="layer-toolbar-left">
        
        </div>
        <div class="layer-toolbar-right">
            <%--<input id="keyword" type="text" name="title" placeholder="用户昵称" autocomplete="off" class="layui-input" value=""  style="width:150px;" onkeyup='CRM.Enter("#search")'>
            <a id="search" class="layui-btn layui-btn-small layui-btn-normal" onclick="Search()">搜索</a>--%>
            <a class="layui-btn layui-btn-small" onclick="Search()">刷新</a>
        </div>
    </div>
    <div id="iframe" class="layer-iframe">
    <div class="layui-form">
    <table class="layui-table">
    <colgroup>
      <col width="100">
      <col width="300">
      <col width="100">
      <col width="180">
    </colgroup>
    <thead>
      <tr>
        <th>用户ID</th>
        <th>用户昵称</th>
        <th>充值金额</th>
        <th>充值时间</th>
      </tr> 
    </thead>
     <tbody id="layer-table">
        <tr><td colspan="4" class="center">数据加载中...</td></tr>
    </tbody>
    <script id="data-table" type="text/html">
      {{#  layui.each(d, function(index, item){ }}
      <tr>
        <td>{{item.UserID}}</td>
        <td>{{item.UserName}}</td>
        <td>{{item.Money.toFixed(2)}}</td>
        <td>{{item.CreateDate}}</td>
      </tr>
      {{#  }); }}
      </script>
  </table>
    </div>
    </div>
    <div id="layer-page" class="layer-page"></div>
    </form>
    <script>
        layui.use('form', function () {
            var $ = layui.jquery, form = layui.form();
            Init_Pager(1);
        });

        function Init_Pager(pageindex) {
            var data = {};
            data.act = "Find_Charge";
            data.pageindex = pageindex;
            data.keyword = $("#keyword").val();
            data.userid = <%=userinfo.ID %>;
            data.sign = GetSign(data.act);
            Loading();
            Ajax.Post("/tools/Admin.ashx", data, function (r) {
                var json = $.parseJSON(r);
                if (json.state) {
                    Pager(json.data.list, json.data.count);
                }
                else {
                    LayerBox.Error(json.msg);
                }
            });
        };
       
</script>
</body>
</html>
